How to calculate pairwise co-occurrence matrix based on dataframe

join shbcf.ru